*% Copyright 1996 - 2005, Hewlett-Packard Co.
*% All Rights Reserved.

*%-------------------------------------------------------------------------
*% Include Section
*%-------------------------------------------------------------------------

*Include: "stdnames.gpd"
*Include: "hpzsmwn7.gpd"

*%-------------------------------------------------------------------------
*% Version Section
*%-------------------------------------------------------------------------

*GPDFileName: "hpc520xf.gpd"
*GPDSpecVersion: "1.0"
*GPDFileVersion: "053.2504"



*%-------------------------------------------------------------------------
*% Feature: RESDLL
*%-------------------------------------------------------------------------

*Feature: RESDLL
{
    *Name: "resource dll files"

    *Option: STRRESSEC
    {
        *Name: "hpzstwn7.dll"       *% Get this from the required phase
    }
}

*%-------------------------------------------------------------------------
*% Model Name Section
*%-------------------------------------------------------------------------

*MasterUnits: PAIR(1200, 1200)

*PrinterType: PAGE
*MaxCopies: 9999                    *% Refer to product specs 

*FontCartSlots: 0
*TTFSEnabled?: TRUE
*DeviceFonts: =IDS_DEFAULT_FONT
*DefaultFont: =IDS_DEFAULT_FONT
*TTFS: Courier
{
  *TTFontName: "Courier New"
  *DevFontName: "Courier New"
}

*%------------------------------------------------------------------------
*% DOC_PROP Standard features section
*%------------------------------------------------------------------------

*%------------------------------------------------------------------------
*% Feature: Orientation : TVSF (TV Managed Standard Feature)
*%------------------------------------------------------------------------

*Feature: Orientation
{
    *rcNameID: =IDS_ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    
    *Option: PORTRAIT
    {
        *rcNameID: =IDS_PORTRAIT_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.10
            *NoPageEject?: TRUE
            *CallbackID: =CMDCB_HPROT_DOC_SETUP
        }
    }

    *Option: LANDSCAPE_CC90
    {
        *rcNameID: =IDS_LANDSCAPE_DISPLAY
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.10
            *NoPageEject?: TRUE
            *CallbackID: =CMDCB_HPROT_DOC_SETUP
        }
    }
}

*%------------------------------------------------------------------------
*% Feature: HPOrientRotate180 : TVCF (TV Managed Custom Feature)
*%------------------------------------------------------------------------

*Feature: HPOrientRotate180
{     
    *rcNameID: =IDS_ORIENT_ROTATE_180
    *HelpIndex: =IDH_UNIDRV_PRINT_ROTATED
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
    }
}

*%------------------------------------------------------------------------
*% Feature: PaperSize : TVSF (TV Managed Standard Feature)
*%------------------------------------------------------------------------

*Feature: PaperSize
{
    *rcNameID: =IDS_PAPER_SIZE_DISPLAY
    *HelpIndex: =IDH_UNIDRV_PAPER_SIZE
    *DefaultOption: LETTER
    *ConflictPriority: 1

    *Option: LETTER                                 *% physical page (10200, 13200 - 8.5" x 11.0")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9600, 12800)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l2A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5760x7680Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9800, 12720)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 12960)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l2A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7632x5880Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: LEGAL                                  *% physical page (10200, 16800 - 8.5" x 14.0"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9600, 16400)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l3A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5760x9840Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9800, 16320)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 16560)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l3A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t9792x5880Y<1B>*b0M<0D>"
                }
            }
        }

    }   

    *Option: EXECUTIVE                              *% physical page (8700, 12600 - 7.25" x 10.5"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8100, 12200)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l1A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4860x7320Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8300, 12120)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 12360)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l1A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7272x4980Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: STATEMENT          *% physical page (6600, 10200 - 5.5" x 8.5")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *PageDimensions: PAIR(6600, 10200)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6000,9800)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&n10WeSTATEMENT"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3600x5880Y<1B>*b0M<0D>"        
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6200,9720)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 9960)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&n10WeSTATEMENT"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5832x3720Y<1B>*b0M<0D>"        
                }
            }
        }
     }
    
    *Option: 8_5X13                                  *% physical page (10200, 15600 - 8.5" x 13.0")
    {
        *rcNameID: =IDS_8_5X13_NOT_LOC  
        *PageDimensions: PAIR(10200,15600)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9602, 15188)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l10A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5761x9114Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9802, 15108)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 15350)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l10A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t9066x5881Y<1B>*b0M<0D>"
                }
            }
        }
    }
    *Option: 12x18                                   *% physical page (14400, 21600 - 12.00" x 18.00")
    {
        *rcNameID: =IDS_12x18
        *PageDimensions: PAIR(14400, 21600)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(13800, 21200)   
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *%Cmd: "<1B>&f" %d{(8640)} "i" %d{(12960)} "J<1B>&l101A"
                    *Cmd: "<1B>&l120A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t8280x12720Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(14000, 21120)   
                *PrintableOrigin: PAIR(200, 240)     
                *CursorOrigin: PAIR(200, 21360)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *%Cmd: "<1B>&f" %d{(8640)} "i" %d{(12960)} "J<1B>&l101A"
                    *Cmd: "<1B>&l120A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t12672x8400Y<1B>*b0M<0D>"
                }
            }
        }

    }

    *Option: A4                         *% physical page (9920, 14030 - 8.2677" x 11.693")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9352, 13630)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l26A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5611x8178Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9520, 13558)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 13794)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l26A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t8135x5712Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: A5                                      *% physical page (6992, 9920 - 5.8268" x 8.2677")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
                
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6424, 9520)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l25A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3855x5712Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6592, 9448)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 9684)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l25A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5669x3955Y<1B>*b0M<0D>"
                }
            }
        }
    } 
        
    *Option: A6                                      *% physical page (4956, 6996 - 4.13" x 5.83")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4392,6592)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l24A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2633x3958Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4560, 6520)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 6756)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l24A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3914x2734Y<1B>*b0M<0D>"
                }
            }
        }
    } 

    *Option: RA3          *% physical page (14409, 20315 - 12.01" x 16.93")
    {
        *rcNameID: =IDS_RA3
        *PageDimensions: PAIR(14409, 20315)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(13800,19916)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *Cmd: "<1B>&n4WeRA3"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t8280x11949Y<1B>*b0M<0D>"        
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(13920,19516)
                *PrintableOrigin: PAIR(240, 600)
                *CursorOrigin: PAIR(240, 20116)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *Cmd: "<1B>&n4WeRA3"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t12070x8352Y<1B>*b0M<0D>"        
                }
            }
        }
    }
            
    *Option: B5                                      *% B5 (JIS) physical page (8598, 12140 - 7.1653" x 10.118")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(8030, 11740)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l45A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4818x7044Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(8126, 11700)
                *PrintableOrigin: PAIR(236, 220)
                *CursorOrigin: PAIR(236, 11920)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l45A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7001x4919Y<1B>*b0M<0D>"
                }
            }
        }
    }
        *Option: B6_JIS                                      *% B6 (JIS) physical page (6070, 8598 - 5.058" x 7.165")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(5502, 8198)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l44A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3301x4918Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(5598, 8126)
                *PrintableOrigin: PAIR(236, 236)
                *CursorOrigin: PAIR(236, 8362)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l44A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4875x3402Y<1B>*b0M<0D>"
                }
            }
        }
    }
    *Option:EXECUTIVE_JIS                             *% physical page (10202, 15588 - 8.5039" x 12.992"))
    {
        *rcNameID: =IDS_EXECUTIVE_JIS
        *PageDimensions: PAIR(10200,15588)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(9602, 15188)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l18A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5761x9114Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(9802, 15108)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 15350)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l18A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t9066x5881Y<1B>*b0M<0D>"
                }
            }
        }
     }
      
    *Option: DBL_JAPANESE_POSTCARD_ROTATED          *% physical page (6992, 9448 - 5.8268" x 7.874")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(6424,9048)
                *PrintableOrigin: PAIR(284, 200)

                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l72A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3854x5429Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(6520,8976)
                *PrintableOrigin: PAIR(236, 236)
                *CursorOrigin: PAIR(236, 9012)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l72A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5386x3955Y<1B>*b0M<0D>"
                }
            }
        }
    } 

    *Option: JAPANESE_POSTCARD                    *% physical page (4724, 6992 - 3.94" x 5.83" )
    {
        *rcNameID: =IDS_JAPAN_POST
        *PageDimensions: PAIR(4724, 6992)
        *switch: Orientation
                {
                    *case: PORTRAIT
                    {
                        *PrintableArea: PAIR(4156,6592)
                        *PrintableOrigin: PAIR(284, 200)
                        *CursorOrigin: PAIR(284, 200)
                        *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.20
                        *Cmd: "<1B>&l71A"
                        }
                    *Command: CmdStartPage
                    {
                        *Order: PAGE_SETUP.1
                        *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t3854x5429Y<1B>*b0M<0D>"
                    }
                    }
                    *case: LANDSCAPE_CC90
                    {
                        *PrintableArea: PAIR(4252,6532)
                        *PrintableOrigin: PAIR(236, 230)
                        *CursorOrigin: PAIR(236, 6762)
                        *Command: CmdSelect
                    {
                        *Order: DOC_SETUP.20
                        *Cmd: "<1B>&l71A"
                    }
                    *Command: CmdStartPage
                    {
                       *Order: PAGE_SETUP.1
                        *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5386x3955Y<1B>*b0M<0D>"
                    }
                    }
                }
    }

    *Option:16K                                      *% physical page (9300, 12900 - 7.75" x 10.75")
    {
       *rcNameID: =IDS_MSIZE_16K_7_75X10_75_IN
       *PageDimensions: PAIR(9300,12900)
       *switch: Orientation
       {
           *case: PORTRAIT
           {
               *PrintableArea: PAIR(8700,12500)
               *PrintableOrigin: PAIR(300, 200)
               *CursorOrigin: PAIR(300, 200)
               *Command: CmdSelect
                {
                   *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l17A"
                }
                *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5220x7500Y<1B>*b0M<0D>"
               }
           }
           *case: LANDSCAPE_CC90
           {
               *PrintableArea: PAIR(8820, 12440)
               *PrintableOrigin: PAIR(240, 230)
               *CursorOrigin: PAIR(240, 12670)
               *Command: CmdSelect
                {
                   *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l17A"
                }
                *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7452x5340Y<1B>*b0M<0D>"
               }
           }
       }
    }
    *Option:16K_195_270
    {
       *rcNameID: =IDS_MSIZE_16K_195X270_MM
       *PageDimensions: PAIR(9213,12756)
       *switch: Orientation
       {
           *case: PORTRAIT
           {
               *PrintableArea: PAIR(8645,12356)
               *PrintableOrigin: PAIR(284, 200)
               *CursorOrigin: PAIR(284, 200)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l34A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5220x7500Y<1B>*b0M<0D>"
               }
           }
           *case: LANDSCAPE_CC90
           {
               *PrintableArea: PAIR(8741, 12316)
               *PrintableOrigin: PAIR(236, 220)
               *CursorOrigin: PAIR(236, 12536)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l34A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7452x5340Y<1B>*b0M<0D>"
               }
           }
       }
    }
    *Option:16K_184_260
    {
       *rcNameID: =IDS_MSIZE_16K_184X260_MM
       *PageDimensions: PAIR(8693,12283)
       *switch: Orientation
       {
           *case: PORTRAIT
           {
               *PrintableArea: PAIR(8125,11833)
               *PrintableOrigin: PAIR(284, 200)
               *CursorOrigin: PAIR(284, 200)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l89A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5220x7500Y<1B>*b0M<0D>"
               }
           }
           *case: LANDSCAPE_CC90
           {
               *PrintableArea: PAIR(8221, 11843)
               *PrintableOrigin: PAIR(236, 220)
               *CursorOrigin: PAIR(236, 12063)
               *Command: CmdSelect
               {
                   *Order: DOC_SETUP.20
                   *Cmd: "<1B>&l89A"
               }
               *Command: CmdStartPage
               {
                   *Order: PAGE_SETUP.1
                   *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7452x5340Y<1B>*b0M<0D>"
               }
           }
       }
    }
    *Option: ENV_10                                 *% physical page (4948, 11400 - 4.125" x 9.5"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4348, 11000)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l81A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2609x6600Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4548, 10920)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 11160)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l81A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6552x2729Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: ENV_MONARCH                            *% physical page (4648, 9000 - 3.875" x 7.50")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4048, 8600)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l80A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2429x5160Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4248, 8520)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 8760)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l80A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5112x2549Y<1B>*b0M<0D>"
                }
            }
        }
    }
    *Option: ENV_C5                                 *% physical page (7652, 10818 - 6.3779" x 9.0157"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7084, 10418)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l91A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4250x6250Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7252, 10346)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 10582)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l91A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6208x4352Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: ENV_DL                                 *% physical page (5196, 10392 - 4.3307" x 8.6614")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(4628, 9992)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l90A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t2777x5995Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(4796, 9920)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 10156)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l90A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t5952x2878Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: ENV_B5                                 *% physical page (8314, 11810 - 6.9291" x 9.8425"))
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *Constraints: HPPrintOnBothSidesManually.True
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(7746, 11410)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l100A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t4647x6846Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(7914, 11338)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 11574)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l100A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6802x4748Y<1B>*b0M<0D>"
                }
            }
        }
    }
*%------------------------------------------------------------------------    
*%  There are 2 possibilities of specifying this option.
*%  (a) Placement implemented via the FW custom media width and height commands. OZ, 8500, 8550.  
*%  (b) Placement implemented via the *CustCursorOrigin keywords
*%  Option (a) is shown here uncommented whereas option (b) has been commented
*%  Use as required in your printer model
*%------------------------------------------------------------------------

    *Option: CUSTOMSIZE
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *MinSize: PAIR(3600,6000)
        *MaxSize: PAIR(20400,28080) *% B size printer SLP
        *MaxPrintableWidth: 20400
        *MinLeftMargin: 100
        *CenterPrintable?: FALSE

        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *CustCursorOriginX:     %d{300}
                *CustCursorOriginY:     %d{200}
                *CustPrintableOriginX:  %d{300}
                *CustPrintableOriginY:  %d{200}
                *CustPrintableSizeX:    %d{PhysPaperWidth - 600}
                *CustPrintableSizeY:    %d{PhysPaperLength - 400}
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *Cmd: "<1B>&f" %d{((PhysPaperWidth*720)/1200)} "i" %d{((PhysPaperLength*720)/1200)} "J<1B>&l101A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t" %d{((PhysPaperWidth-600)*720)/1200} "x" %d{((PhysPaperLength-400)*720)/1200} "Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *CustCursorOriginX:     %d{200}
                *CustCursorOriginY:     %d{PhysPaperLength - 240}
                *CustPrintableOriginX:  %d{200}
                *CustPrintableOriginY:  %d{240}
                *CustPrintableSizeX:    %d{PhysPaperWidth - 400}
                *CustPrintableSizeY:    %d{PhysPaperLength - 480}
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *Cmd: "<1B>&f" %d{((PhysPaperWidth*720)/1200)} "i" %d{((PhysPaperLength*720)/1200)} "J<1B>&l101A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t" %d{((PhysPaperLength-480)*720)/1200} "x" %d{((PhysPaperWidth-400)*720)/1200} "Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: A3                                     *% physical page (14030, 19842 - 11.693" x 16.535")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(13462, 19442)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                     *Cmd: "<1B>&l27A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                     *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t8077x11665Y<1B>*b0M<0D>"
                }
            }

            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(13630, 19370)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 19606)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                     *Cmd: "<1B>&l27A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                     *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t11622x8178Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option: B4                                      *% B4 (JIS) physical page (12140, 17196 - 10.118" x 14.33")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(11572, 16796)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l46A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t6943x10078Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(11740, 16724)
                *PrintableOrigin: PAIR(200, 236)
                *CursorOrigin: PAIR(200, 16960)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l46A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t10034x7044Y<1B>*b0M<0D>"
                }
            }
        }
    }

    *Option:8K                                      *% physical page (12900, 18600 - 10.748" x 15.512")
    {
        *rcNameID: =IDS_MSIZE_8K_10_75X15_50_IN
        *PageDimensions: PAIR(12900,18600)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(12300, 18200)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *Cmd: "<1B>&l19A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7380x10920Y<1B>*b0M<0D>"
                }
            }

            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(12420, 18160)
                *PrintableOrigin: PAIR(240, 220)
                *CursorOrigin: PAIR(240, 18380)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l19A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t10872x7500Y<1B>*b0M<0D>"
                }
            }
        }
    }
    
    *Option:8K_260_368                                      
    {
        *rcNameID: =IDS_MSIZE_8K_260X_368_MM
        *PageDimensions: PAIR(12283,17386)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(11715, 16986)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *Cmd: "<1B>&l35A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7380x10920Y<1B>*b0M<0D>"
                }
            }

            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(11811, 16946)
                *PrintableOrigin: PAIR(236, 220)
                *CursorOrigin: PAIR(236, 17166)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l35A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t10872x7500Y<1B>*b0M<0D>"
                }
            }
        }
    }
    
    *Option:8K_270_390                                      
    {
        *rcNameID: =IDS_MSIZE_8K_270X390_MM
        *PageDimensions: PAIR(12756,18425)
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(12188, 18025)
                *PrintableOrigin: PAIR(284, 200)
                *CursorOrigin: PAIR(284, 200)
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.12
                    *Cmd: "<1B>&l33A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7380x10920Y<1B>*b0M<0D>"
                }
            }

            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(12284, 17985)
                *PrintableOrigin: PAIR(236, 220)
                *CursorOrigin: PAIR(236, 18205)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l33A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t10872x7500Y<1B>*b0M<0D>"
                }
            }
        }
    }
    
    
    *Option: 11X17                                   *% physical page (13200, 20400 - 11.00" x 17.00")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(12600, 20000)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l6A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7560x12000Y<1B>*b0M<0D>"
                }
            }
            *case: LANDSCAPE_CC90
            {
                *PrintableArea: PAIR(12800, 19920)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 20160)

                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l6A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t11952x7680Y<1B>*b0M<0D>"
                }
            }
        }
    }
*%------------------------------------------------------------------------
*%  Unsupported Papers for Allow Scaling From Larger Paper (Virtual Paper Sizes)   
*%  The paper sizes for this printer are A2 and CSize sheet
*%  Commands are sent for SLP papers as well. This is done to handle cases where EMF raw spooling
*%  is enabled for a mixed mode document which has an SLP papersize selected in the middle of the job.
*%------------------------------------------------------------------------
    *%UnSupported Paper for Allow Scaling From Larger Paper
    *Option: A2
    {                                                *% physical page (19848, 28068 - 16.54" x 23.39")
         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
         *%PageDimensions: PAIR(19848, 28068)                                    
         *switch: Orientation
         {
             *case: PORTRAIT
             {
                 *PrintableArea: PAIR(19280, 27668)
                 *PrintableOrigin: PAIR(284, 200)
                 *CursorOrigin: PAIR(284, 200)   
                 *Command: CmdSelect
                 {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l27A"
                 }
                 *Command: CmdStartPage
                 {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t8077x11665Y<1B>*b0M<0D>"
                 }
                                         
             }
             *case: LANDSCAPE_CC90
             {             
                 *PrintableArea: PAIR(19448, 27596)
                 *PrintableOrigin: PAIR(200, 236)
                 *CursorOrigin: PAIR(200, 27832)  
                 *Command: CmdSelect
                 {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l27A"
                 }
                 *Command: CmdStartPage
                 {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t11622x8178Y<1B>*b0M<0D>"
                 }                               
             }
         }         
     }        
    *Option: CSHEET                                   *% physical page (20400, 26400 - 17.00" x 22.00")
    {
        *rcNameID: =RCID_DMPAPER_SYSTEM_NAME                    
        *%PageDimensions: PAIR(20400, 26400)                        
        *switch: Orientation
        {
            *case: PORTRAIT
            {
                *PrintableArea: PAIR(19800, 26000)
                *PrintableOrigin: PAIR(300, 200)
                *CursorOrigin: PAIR(300, 200)  
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l6A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t7560x12000Y<1B>*b0M<0D>"
                }                              
            }
            *case: LANDSCAPE_CC90
            {
               *PrintableArea: PAIR(20000, 25920)
                *PrintableOrigin: PAIR(200, 240)
                *CursorOrigin: PAIR(200, 26160)                              
                *Command: CmdSelect
                {
                    *Order: DOC_SETUP.20
                    *Cmd: "<1B>&l6A"
                }
                *Command: CmdStartPage
                {
                    *Order: PAGE_SETUP.1
                    *Cmd: "<1B>&l8c1E<1B>*p0x0Y<1B>*c0t11952x7680Y<1B>*b0M<0D>"
                }
            }
        }
    }

*%------------------------------------------------------------------------
*%  Addition of Unsupported Papers ends here
*%------------------------------------------------------------------------
}

*%------------------------------------------------------------------------
*% Feature: MediaType: TVSF (TV Managed Standard Feature)
*%------------------------------------------------------------------------

*Feature: MediaType
{
    *rcNameID: =IDS_MEDIA_TYPE_DISPLAY
    *HelpIndex: =IDH_UNIDRV_FIRST_PAGE_TYPE_IS
    *ConflictPriority: 2
    *DefaultOption: AUTO

    *Option: AUTO
    {
        *rcNameID: =IDS_UNSPECIFIED
    }

    *Option: PLAIN
    {
        *rcNameID: =IDS_PLAIN_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6WdPlain"
        }
    }

    *Option: PREPRINTED
    {
        *rcNameID: =IDS_PREPRINTED_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11WdPreprinted"
        }
    }

    *Option: LETTERHEAD
    {
        *rcNameID: =IDS_LETTERHEAD_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11WdLetterhead"
        }
    }

    *Option: TRANSPARENCY
    {
        *rcNameID: =IDS_TRANSPARENCY_DISPLAY
        *Constraints: HPPrintOnBothSidesManually.True

        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n13WdTransparency"
        }
    }

    *Option: PREPUNCHED
    {
        *rcNameID: =IDS_PREPUNCHED_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11WdPrepunched"
        }
    }

    *Option: LABELS
    {
        *rcNameID: =IDS_LABELS_TYPE
        *Constraints: HPPrintOnBothSidesManually.True
        
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n7WdLabels"
        }
    }

    *Option: BOND
    {
        *rcNameID: =IDS_BOND_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n5WdBond"
        }
    }

    *Option: RECYCLED
    {
        *rcNameID: =IDS_RECYCLED_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n9WdRecycled"
        }
    }

    *Option: COLOR
    {
        *rcNameID: =IDS_COLOR_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6WdColor"
        }
    }

    *Option: LIGHT
    {
        *rcNameID: =IDS_LIGHT2              *%  "Light 60-75 g/m2"
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6W<64>Light"
        }
    }

    *Option: CARDSTOCK                      *%"Cardstock 164-220 g/m2"
    {
        *rcNameID: =IDS_CARDSTOCK4
        
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11W<64>Card Stock"
        }

    }

    *Option: ROUGH            *%"Rough "
    {
        *rcNameID: =IDS_ROUGH_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n6W<64>Rough"
        }
    }
    
    *Option: GLOSSY_FILM                  *% "Tough"
    {
        *rcNameID: =IDS_MTYPE_LJ_TOUGH
        *%Name: "Tough"           
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n11W<64>Gloss Film"
        }
    }
    *Option: VELLUM                  *% "Vellum"
    {
        *rcNameID: =IDS_VELLUM_TYPE
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n7W<64>Vellum"
        }
    }
    *Option: ENVELOPE
    {
        *rcNameID: =ENVELOPE_DISPLAY
        *Constraints: HPPrintOnBothSidesManually.True
        
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *Cmd: "<1B>&n9W<64>Envelope"
        }
    }
*%------------------------------------------------------------------------
*%  Addition of User Defined Media Types. These are processed through EAC/BiDi.
*%  Currently MOMBI supports only upto 5. Also make sure that HPMediaPMLRange feature is also present
*%------------------------------------------------------------------------

    *Option: UserDefinedMedia1
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }
    *Option: UserDefinedMedia2
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }
    *Option: UserDefinedMedia3
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }
    *Option: UserDefinedMedia4
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }
    *Option: UserDefinedMedia5
    {
        *Name: " "
        *Command: CmdSelect
        {
            *Order: DOC_SETUP.50
            *CallbackID: =CMDCB_USERDEFINED_MEDIA
        }
    }

}
*%------------------------------------------------------------------------
*%  End of Addition of User Defined Media Types.
*%------------------------------------------------------------------------


*Feature: Economode
{
    *rcNameID: =IDS_ECONOMODE
    *HelpIndex: =IDH_UNIDRV_ECONOMODE_MAY_SAVE_PRINT_CARTRIDGES
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_OFF_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.120
            *Cmd: "@PJL SET ECONOMODE=OFF<0A>"
        }
    }

    *Option: True
    {
        *rcNameID: =IDS_ON_DISPLAY
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.120
            *Cmd: "@PJL SET ECONOMODE=ON<0A>"
        }
    }
}

*%------------------------------------------------------------------------
*% Feature: TextAsBlack : CF (Custom Feature)
*%------------------------------------------------------------------------

*Feature: TextAsBlack
{
    *rcNameID: =IDS_PRINTALLBLACK
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_PRINT_TEXT_BLACK_EC5
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
        
        *Ifdef: WINNT_51
            
            *Constraints: GraphicsMode.RASTERMODE

        *Endif:

    }
}

*%------------------------------------------------------------------------
*% Feature: TTAsBitmapsSetting : CF (Custom Feature)
*%------------------------------------------------------------------------

*Feature: TTAsBitmapsSetting
{
    *rcNameID: =IDS_TTASBITMAPS
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_TRUETYPE_AS_BITMAP
    *DefaultOption: TTModeOutline

    *Option: TTModeOutline
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: TTModeBitmap
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*switch: TTAsBitmapsSetting
{
    *case: TTModeBitmap
    {
        *FontFormat: HPPCL_RES
    }

    *case: TTModeOutline
    {
        *FontFormat: HPPCL_OUTLINE
    }
}

*%------------------------------------------------------------------------
*% Feature: GraphicsMode : CF (Custom Feature)
*%------------------------------------------------------------------------
*Ifdef: WINNT_51
*Personality: =PERSONALITY_HPGL2

*Feature: GraphicsMode
{
    *rcNameID: =IDS_RENDERING_MODE
    *DefaultOption: RASTERMODE
    *HelpIndex: =IDH_UNIDRV_GRAPHICS_MODE_EC5
    
    *Option: HPGL2MODE
    {
        *rcNameID: =IDS_RENDERMODE_VECTOR
    }

    *Option: RASTERMODE
    {
        *rcNameID: =IDS_RENDERMODE_RASTER
    }
}
*Endif:

*%-------------------------------------------------------------------------
*% PRN_PROP Standard features section
*%-------------------------------------------------------------------------

*%------------------------------------------------------------------------
*% Feature: AutoConfiguration : CF (Custom Feature)
*%------------------------------------------------------------------------

*Feature: AutoConfiguration
{
    *rcNameID: =IDS_AUTO_CONFIGURATION
    *HelpIndex: =IDH_UPDATE_NOW_EC6
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: NotInstalled

    *Option: NotInstalled
    {
        *rcNameID: =IDS_OFF_DISPLAY
    }
    *Option: Installed
    {
        *rcNameID: =IDS_UPDATE_NOW
    }
}

*%-------------------------------------------------------------------------
*% DOC_PROP Custom features section
*%-------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*% Feature: HPDocPropResourceData: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  The dependency files will include now a .cab file, 
*%  which will contain the help files of all locales supported by the product. 
*%  During the runtime the help file corresponding to the locale of the current user 
*%  the help file is extracted from the .cab file and used.
*%-------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*% Feature: PrintQualityGroup : TVCF (TV Managed Custom Feature)
*%-------------------------------------------------------------------------
*%  This feature is used for the Print Quality association.
*%  The help index, and option name strings are taken from here and displayed on the HP Paper/Quality tab page
*%  under the Print Quality list box. 
*%  Each of these option selections are associated with a set of other GPD feature selections
*%  (visible or hidden in treeview) using the HP specific XML data file
*%-------------------------------------------------------------------------

*Feature: PrintQualityGroup
{
    *Name: "PrintQualityGroup"
    *HelpIndex: =IDH_UNIDRV_PRINT_QUALITY_PH3
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PQGroup_1

    *Option: PQGroup_1
    {
        *rcNameID: =IDS_600DPI_RES
    }

        *Option: PQGroup_2
    {
        *rcNameID: =IDS_300DPI_RES
    }

}


*%  This feature is used for specifying whether the printer is color or monochrome
*%  Possible values are MONOCHROME_MODE, COLOR_MODE
*%  Based on the color/monochrome support, the Color tab is shown in the HP UI. 
*%  Using this, additional specific processing and switching can also be done in the HP UI and render plug-in modules

*Feature: HPColorMode
{
    *Name: "HPColorMode"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: MONOCHROME_MODE

    *Option: MONOCHROME_MODE
    {
        *Name: "MONOCHROME_MODE"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPPDLType: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  This feature is used for specifying the PDL of the driver. 
*%  Possible values are PDL_PCL3, PDL_PCL5, PDL_PCL6, PDL_PS
*%  Using this, additional specific processing and switching can also be done in the HP UI and render plug-in modules
*%-------------------------------------------------------------------------

*Feature: HPPDLType
{
    *Name: "HPPDLType"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PDL_PCL5

    *Option: PDL_PCL5
    {
        *Name: "PDL_PCL5"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPMaxResolution: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for specifying the maximum resolution supported by the printer for use in the render module
*% Possible values are PDM_1500DPI, PDM_300DPI, PDM_600DPI
*%-------------------------------------------------------------------------

*Feature: HPMaxResolution
{
    *Name: "HPMaxResolution"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: PDM_600DPI
    *Option: PDM_600DPI
    {
        *Name: "PDM_600DPI"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPPJLEncoding: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for specifying the encoding supported by the printer
*% Possible values are UTF8, 7 Bit ASCII Encoding, 8 Bit ASCII Encoding and No Encoding
*% Using this, various PJL strings (Job Storage User Names, Job Names etc) can be encoded and sent to the printer
*%-------------------------------------------------------------------------

*Feature: HPPJLEncoding
{
    *Name: "HPPJLEncoding"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: UTF8

    *Option: UTF8
    {
        *Name: "UTF8"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPJobAccounting: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for the Job Accounting feature for sending various statistical and metrics data to the printer
*% Possible values are HPJOBACCT_JOBACNT (Job Accounting alone), HPJOBACCT_JOBACNT_TIMESTAMP (Job Accounting and Time Stamp)
*% A callback ID (must be 1) is specified and in the render module, the metrics data is obtained 
*% and sent as PJLs to the printer
*%-------------------------------------------------------------------------

*Feature: HPJobAccounting
{
    *Name: "HPJobAccounting"
    *FeatureType: DOC_PROPERTY

    *Option: HPJOBACCT_JOBACNT_COLORAUTH
    {
        *Name: "HPJOBACCT_JOBACNT_COLORAUTH"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.10
            *CallbackID: =CMDCB_HPJOBACCOUNT
        }
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPBornOnDate: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for the Born On Date feature for sending the date/time stamp of the job to the printer
*% Possible values are HPBOD
*% A callback ID (must be 3) is specified and in the render module, the date/time stamp is obtained 
*% and sent as PJLs to the printer
*%-------------------------------------------------------------------------

*Feature: HPBornOnDate
{
    *Name: "HPBornOnDate"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: HPBOD

    *Option: HPBOD
    {
        *Name: "HPBOD"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.20
            *CallbackID: =CMDCB_HPBOD
        }
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPJobByJobOverride: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for the Job By Hob Override feature. Here the user name needs to be sent with every job
*% Possible values are JBJO
*% A callback ID (must be 5) is specified and in the render module, the user name is obtained 
*% and sent as PJLs to the printer
*%-------------------------------------------------------------------------
*Feature: HPJobByJobOverride
{
    *Name: "HPJobByJobOverride"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: JBJO

    *Option: JBJO
    {
        *Name: "JBJO"
        *Command: CmdSelect
        {
            *Order: JOB_SETUP.40
            *CallbackID: =CMDCB_HPJBJO
        }
    }
}

*% This feature is used for enabling smart duplexing on a single page job 
*% (i.e not playing the blank side of the page)
*% Required as True for all products

*Feature: HPSmartDuplexSinglePageJob
{
    *Name: "HPSmartDuplexSinglePageJob"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True

    *Option: True
    {
        *Name: "True"
    }
}

*% This feature is used for enabling smart duplexing on odd page job and improving duplex performance for the same
*% Option is printer model dependent. False if model does not support this and True otherwise

*Feature: HPSmartDuplexOddPageJob
{
    *Name: "HPSmartDuplexOddPageJob"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True
    
    *Option: True
    {
        *Name: "True"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPManualDuplexDialogItems: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  Manual Duplex custom feature
*%  Specifies the bitmaps and strings for the manual duplex pop-up dialog that comes at print time
*%-------------------------------------------------------------------------

*Feature: HPManualDuplexDialogItems
{
    *Name: "HPManualDuplexDialogItems"
    *DefaultOption: InstructionID_01_FACEDOWN-NOROTATE

    *Option: InstructionID_01_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_158_StringID_4384"
    }

    *Option: InstructionID_01_FACEUP-NOROTATE
    {
        *Name:"BitmapID_157_StringID_4384"
    }

    *Option: InstructionID_02_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_159_StringID_3070"
    }

    *Option: InstructionID_02_FACEUP-NOROTATE
    {
        *Name:"BitmapID_159_StringID_3071"
    }

    *Option: InstructionID_03_FACEDOWN-NOROTATE
    {
        *Name:"BitmapID_156_StringID_4819"
    }

    *Option: InstructionID_03_FACEUP-NOROTATE
    {
        *Name:"BitmapID_156_StringID_4819"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPManualFeedOrientation: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  Manual Duplex custom feature
*%  Specifies the ManualFeed Tray Paper Orientation of the printer model
*%  Possible values are FACEDOWN, FACEUP
*%-------------------------------------------------------------------------

*Feature: HPManualFeedOrientation
{
    *Name: "HPManualFeedOrientation"
    *DefaultOption: FACEDOWN
    *Option: FACEDOWN
    {
        *Name:"FACEDOWN"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPOutputBinOrientation: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  Manual Duplex custom feature
*%  HPOutputBinOrientation - should have orientations of all supported output bins
*%  If the printer has no selectable outputbins, this feature has only 1 option - FACEUP/FACEDOWN
*%  If the printer has selectable outputbins, this feature should have 1 option each for each 
*%  of the selectable output bins eg Option1-FACEDOWN, Option2-FACEUP
*%-------------------------------------------------------------------------

*Feature: HPOutputBinOrientation
{
    *Name: "HPOutputBinOrientation"
    *DefaultOption: FACEDOWN

    *Option: FACEDOWN
    {
        *Name:"FACEDOWN"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPManualDuplexDialogModel: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  Manual Duplex custom feature
*%  Specifies whether the Manual Duplex pop-up dialog must be modal (used mainly for Inkjets) or modeless (used for LJ)
*%  Possible values are Modeless, Modal
*%-------------------------------------------------------------------------

*Feature: HPManualDuplexDialogModel
{
    *Name: "HPManualDuplexDialogModel"
    *DefaultOption: Modeless

    *Option: Modeless
    {
        *Name:"Modeless"
    }
}


*%-------------------------------------------------------------------------
*% Feature: HPMapManualFeedToTray1: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  Manual Duplex custom feature
*%  ManualDuplex Mapping of Manual Feed Tray to Tray 1
*%  Possible values are True, False
*%  Value should be True only if the Manual Duplex PJL is sent
*%-------------------------------------------------------------------------

*Feature: HPMapManualFeedToTray1
{
    *Name: "HPMapManualFeedToTray1"
    *DefaultOption: True

    *Option: True
    {
        *Name:"True"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPManualDuplexPageRotate: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  Manual Duplex custom feature
*%  Capability of rotation
*%  Possible values are UserRotate, DriverRotate
*%      UserRotate - If the user has to rotate the paper stack (driver rotation not supported for manual duplex)
*%      DriverRotate - If the driver/firmware will rotate the paper stack
*%-------------------------------------------------------------------------

*Feature: HPManualDuplexPageRotate
{
    *Name: "HPManualDuplexPageRotate"
    *DefaultOption: DriverRotate
    *Option: DriverRotate
    {
        *Name: "DriverRotate"
    }
}

*Feature: HPStraightPaperPath
{
    *rcNameID: =IDS_CORRECT_ORDER_REAR_BIN
    *HelpIndex: =IDH_UNIDRV_STRAIGHT_PAPER_PATH_EC6
    *DefaultOption: False

    *Option: False
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: True
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
        
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPCovers: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  HPCovers custom feature
*%  Mandatory for models supporting Use Different Paper from 03Q3 level onwards.
*%  This feature defines the list of options that will appear in the List Box on the Paper/Quality tab page
*%  Additional feeder options are used for processing the Cover Sheet options for Digital Copiers
*%-------------------------------------------------------------------------

*Feature: HPCovers
{
    *Name: "HPCovers"
    *FeatureType: DOC_PROPERTY
    *ConflictPriority: 5
    *DefaultOption: Front_Cover

    *Option: Front_Cover
    {
        *rcNameID: =IDS_FRONT_DOVER
    }

    *Option: First_Page
    {
        *rcNameID: =IDS_STA_FIRST_PAGE
    }

    *Option: Other_Pages
    {
        *rcNameID: =IDS_MEDIA_LB_OTHER_PAGES
    }

    *Option: Last_Page
    {
        *rcNameID: =IDS_LAST_PAGE
    }

    *Option: Back_Cover
    {
        *rcNameID: =IDS_BACK_COVER
    }

}



*%-------------------------------------------------------------------------
*% Feature: HPConsumerCustomPaper: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  This feature is used for showing the Custom Paper Button on the PQ tab page
*%  Single option. Possible values are True and False.
*%-------------------------------------------------------------------------

*Feature: HPConsumerCustomPaper
{
    *Name: "HPConsumerCustomPaper"
    *Option: True
    {
        *Name: "True"
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPEnableRAWSpooling: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  This feature is used for enabling dynamic EMF/RAW spool switching in the driver
*%  Single option. Possible values are True.
*%  Add this feature if you want to support the dynamic switching.
*%-------------------------------------------------------------------------

*Feature: HPEnableRAWSpooling
{
    *Name: "HPEnableRAWSpooling"
    *FeatureType: DOC_PROPERTY
    *DefaultOption: True

    *Option: True
    {
        *Name: "True"
    }
}


*%-------------------------------------------------------------------------
*% PRN_PROP Custom features section
*%-------------------------------------------------------------------------

*%-------------------------------------------------------------------------

*%-------------------------------------------------------------------------
*% Feature: HPPrnPropResourceData: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% The dependency files will include now a .cab file, 
*% which will contain the help files of all locales supported by the product. 
*% During the runtime the help file corresponding to the locale of the current user 
*% the help file is extracted from the .cab file and used.
*%-------------------------------------------------------------------------



*%-------------------------------------------------------------------------
*% Feature: HPPrintOnBothSidesManually: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------

*Feature: HPPrintOnBothSidesManually
{
    *rcNameID: =IDS_MANUALDUPLEX
    *FeatureType: DOC_PROPERTY
    *HelpIndex: =IDH_UNIDRV_PRINT_ON_BOTH_SIDES_MANUAL_EC6
    *ConflictPriority: 5
    *DefaultOption: False

    *Option: False
    {
       *rcNameID: =IDS_OFF_DISPLAY
       *Command: CmdSelect
       {
           *Order: JOB_SETUP.70
           *CallbackID: =CMDCB_MANUALDUPLEX
       }
    }
    *Option: True
    {
       *rcNameID: =IDS_ON_DISPLAY
       *Command: CmdSelect
       {
           *Order: JOB_SETUP.70
           *CallbackID: =CMDCB_MANUALDUPLEX
       }
    }
}

*%-------------------------------------------------------------------------
*% Feature: ScaleFromLargePaper: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for specifying the Support for Larger paper (SLP) feature which allows the user to select a paper
*% size larger than what the printer supports and still print that onto a supported (mapped) paper without any page reflow
*% in the document at the application side
*% Currently, this feature is either always supported for printers or not suppoted at all. 
*% This means that this feature is not user modifiable and has no UI exposure
*% To support SLP, define this feature with *DefaultOption: Installed
*% To remove SLP support, define this feature with *DefaultOption: NotInstalled or do not define the feature
*%-------------------------------------------------------------------------

*Feature: ScaleFromLargePaper
{    
    *rcNameID: =IDS_LARGE_PAPER_SUPPORT    
    *FeatureType: PRINTER_PROPERTY
    *HelpIndex: =IDH_UNIDRV_LARGER_PAPER
    *DefaultOption: Installed

    *Option: NotInstalled
    {
        *rcNameID: =IDS_DISABLED_DISPLAY
    }

    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}

*%-------------------------------------------------------------------------
*% Feature: ActualCustomRange: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used in conjunction with the ScaleFromLargePaper above. It should be present only if 
*% ScaleFromLargePaper above is present. This specifies the Actual (supported) MaxSize dimensions of the printer
*% since the *MaxSize keyword dimensions have been specified as the maximum larger (SLP) paper
*% Specify the option name as X_Y where X and Y are the width and height of the paper in "tens of mm"
*%-------------------------------------------------------------------------

*Feature: ActualCustomRange
 {
    *Name: "Actual Custom Range"
    *ConcealFromUI?: TRUE
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: 311912_469900
    *Option: 311912_469900
    {
        *Name: "311912_469900"
    }

}

*%-------------------------------------------------------------------------
*% Feature: CombineMediaTypesAndInputBins: HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for the "Combine Media Types and Sources in the application list" feature
*% This feature is currently not shown in the treeview because of Unidrv limitations. 
*% So in any product, this feature is either always present as installed or always present as Not Installed
*%-------------------------------------------------------------------------

*Feature: CombineMediaTypesAndInputBins
{
    *rcNameID: =IDS_COMBINE_SOURCE_TYPE
    *FeatureType: PRINTER_PROPERTY 
    *HelpIndex: =IDH_UNIDRV_COMBINE_SOURCE_TYPE
    *DefaultOption: Installed
    
    *Option: Installed
    {
        *rcNameID: =IDS_ENABLED_DISPLAY
    }
}


*%-------------------------------------------------------------------------
*% Feature: HPFontInstaller : HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*% This feature is used for specifying if the HP custom font installer is to be used
*%-------------------------------------------------------------------------

*Feature: HPFontInstaller
{
    *Name: "HPFontInstaller"
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: TRUE

    *Option: TRUE
    {
        *Name: ""
    }
}

*%-------------------------------------------------------------------------
*% Feature: HPMediaPMLRange : HPCF (HP Custom Feature)
*%-------------------------------------------------------------------------
*%  This feature is used for specifying the range of User Defined Media types. 
*%  This range is used to construct the command sent to the printer for user defined media types
*%-------------------------------------------------------------------------

*Feature: HPMediaPMLRange
{
    *Name: "HPMediaPMLRange"
    *FeatureType: PRINTER_PROPERTY

    *Option: 17-21
    {
         *Name: "17-21"
    }
}

*%-------------------------------------------------------------------------
*% Commands section
*%-------------------------------------------------------------------------
*%-------------------------------------------------------------------------
*% Job setup commands
*%-------------------------------------------------------------------------

*Command: CmdStartJob
{
    *Order: JOB_SETUP.1
    *Cmd: "<1B>%%-12345X"
}

*%-------------------------------------------------------------------------
*% Doc setup commands
*%-------------------------------------------------------------------------

*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<1B>&u600D<1B>*r0F<1B>*o4W<0A060001>"
}

*%-------------------------------------------------------------------------

*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<1B>E<1B>%%-12345X@PJL EOJ<0A><1B>%%-12345X"
}

*%-------------------------------------------------------------------------

*Command: CmdXMoveAbsolute { *Cmd : "<1B>*p" %d{(DestX / 2) }"X" }
*Command: CmdXMoveRelRight { *Cmd : "<1B>*p+" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
*Command: CmdXMoveRelLeft { *Cmd : "<1B>*p-" %d[0,9600]{max_repeat((DestXRel / 2) )}"X" }
*Command: CmdYMoveAbsolute { *Cmd : "<1B>*p" %d{(DestY / 2) }"Y" }
*Command: CmdYMoveRelDown { *Cmd : "<1B>*p+" %d{(DestYRel / 2) }"Y" }
*Command: CmdYMoveRelUp { *Cmd : "<1B>*p-" %d{(DestYRel / 2) }"Y" }
*Command: CmdCR { *Cmd : "<0D>" }
*Command: CmdLF { *Cmd : "<0A>" }
*Command: CmdFF { *Cmd : "<0C>" }
*Command: CmdBackSpace { *Cmd : "<08>" }
*Command: CmdUniDirectionOn { *Cmd : "<00>" }
*Command: CmdUniDirectionOff { *Cmd : "<00>" }
*Command: CmdPushCursor { *Cmd : "<1B>&f0S" }
*Command: CmdPopCursor { *Cmd : "<1B>&f1S" }
*Command: CmdSetSimpleRotation { *Cmd : "<1B>&a" %d{PrintDirInCCDegrees}"P" }
*Command: CmdEnableTIFF4 { *Cmd : "<1B>*b2M" }
*Command: CmdDisableCompression { *Cmd : "<1B>*b0M" }
*Command: CmdEnableDRC { *Cmd : "<1B>*b3M" }
*Command: CmdSetFontID { *Cmd : "<1B>*c" %d{NextFontID}"D" }
*Command: CmdSelectFontID { *Cmd : "<1B>(" %d{CurrentFontID}"X" }
*Command: CmdSetCharCode { *Cmd : "<1B>*c" %d{NextGlyph}"E" }
*Command: CmdUnderlineOn { *Cmd : "<1B>&dD" }
*Command: CmdUnderlineOff { *Cmd : "<1B>&d@" }
*Command: CmdWhiteTextOn { *Cmd : "<1B>*v1o1T" }
*Command: CmdWhiteTextOff { *Cmd : "<1B>*v0o0T" }
*Command: CmdSelectSingleByteMode { *Cmd : "<1B>&t0P" }
*Command: CmdSelectDoubleByteMode { *Cmd : "<1B>&t21P" }
*Command: CmdSetRectWidth { *Cmd : "<1B>*c" %d{(RectXSize / 2) }"A" }
*Command: CmdSetRectHeight { *Cmd : "<1B>*c" %d{(RectYSize / 2) }"B" }
*Command: CmdRectGrayFill { *Cmd : "<1B>*c" %d{GrayPercentage }"g2P" }
*Command: CmdRectWhiteFill { *Cmd : "<1B>*c1P" }
*Command: CmdRectBlackFill { *Cmd : "<1B>*c0P" }

*%-------------------------------------------------------------------------
*%  Color Palette commands
*%-------------------------------------------------------------------------

*%*Command: CmdDownloadPattern {*Cmd: "<1B>*c" %d{PatternBrushID}"G" "<1B>*c" %d{PatternBrushSize}"W" }
*%*Command: CmdSelectPattern {*Cmd: "<1B>*c" %d{PatternBrushID}"G" "<1B>*v" %d{PatternBrushType}"T" }
*%*Command: CmdSelectWhiteBrush { *Cmd : "<1B>*v1o1T" }
*%*Command: CmdSelectBlackBrush { *Cmd : "<1B>*v0o0T" }


*%-------------------------------------------------------------------------
*% Render standard keywords section
*%-------------------------------------------------------------------------

*CharPosition: BASELINE     *% character positioning keyword must be present even if device font are not present
*RotateCoordinate?: TRUE
*RotateRaster?: TRUE
*RotateFont?: TRUE
*EjectPageWithFF?: FALSE
*TextCaps: LIST(TC_CR_90,TC_UA_ABLE,TC_SF_X_YINDEP)
*MemoryUsage: LIST(FONT)
*CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
*CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
*CursorYAfterSendBlockData: AUTO_INCREMENT
*BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
*XMoveThreshold: 0
*YMoveThreshold: 0
*XMoveUnit: 600
*YMoveUnit: 600
*OptimizeLeftBound?: TRUE
*MinGrayFill: 1
*MaxGrayFill: 100

*%-------------------------------------------------------------------------